package org.tio.sitexxx.service.vo;

import java.util.Objects;

/**
 * 
 * @author tanyaowu
 */
public enum Devicetype {

	/**
	 * WS
	 */
	PC((byte) 1),

	/**
	 * 安卓
	 */
	ANDROID((byte) 2),

	/**
	 * IOS
	 */
	IOS((byte) 3);


	public static Devicetype from(Byte value) {
		Devicetype[] values = Devicetype.values();
		for (Devicetype v : values) {
			if (Objects.equals(v.value, value)) {
				return v;
			}
		}
		return null;
	}

	Byte value;

	private Devicetype(Byte value) {
		this.value = value;
	}

	public Byte getValue() {
		return value;
	}

	public void setValue(Byte value) {
		this.value = value;
	}
}
